import { pubRequire } from '@utils/public'
const baseUrl = '/lifes'
// 获取列表
export function getSearchList(params, callBack, errBack) {
  return pubRequire(
    'get',
    `${baseUrl}/reviews/content`,
    params,
    callBack,
    errBack
  )
}
// 批量公开展示
export function passAll(params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/reviews/contents/public`,
    params,
    callBack,
    errBack
  )
}
// 单个公开展示
export function passSingle(lifeId, params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${lifeId}/reviews/contents/public`,
    params,
    callBack,
    errBack
  )
}
// 批量仅主页可见
export function AllMPass(params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/reviews/contents/personal`,
    params,
    callBack,
    errBack
  )
}
// 单个仅主页可见
export function publicSingle(id, params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${id}/reviews/contents/personal`,
    params,
    callBack,
    errBack
  )
}
// 不通过单个
export function failSingleRequestAPI(lifeId, params, callBack, errBack) {
  return pubRequire(
    'delete',
    `${baseUrl}/${lifeId}/reviews/contents/unpass`,
    params,
    callBack,
    errBack
  )
}
// 不通过多个
export function failMultRequestAPI(params, callBack, errBack) {
  return pubRequire(
    'delete',
    `${baseUrl}/reviews/contents/unpass`,
    params,
    callBack,
    errBack
  )
}
